package com.open.capacity.workflow3.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.open.capacity.reimburse.util.uuid.UUIDUtils;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * @author
 * @email
 * @date 2023-11-02 21:21:15
 */

@Data
public class NwfTaskLog implements Serializable {
    private static final long serialVersionUID = 1L;


    private String id;

    private String processId;

    private String taskId;

    private String operationCode;

    private String operationName;

    private String nodeId;

    private String nodeName;

    private Integer taskType;

    private String prevNodeId;

    private String prevNodeName;

    private String taskUserid;

    private String taskUsername;

    private String signImg;

    private String stampImg;

    private String description;

    private String createUserid;

    private String createUsername;

    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public NwfTaskLog create() {
        id = UUIDUtils.getOriginalUUIDWithoutBar();
        createTime = new Date();
        return this;
    }

}
